//
//  HamatonDiagnoseTableViewCell.swift
//  hamaton-app
//
//  Created by intyt on 2024/4/8.
//

import UIKit
import SnapKit

class HamatonDiagnoseTableViewCell: UITableViewCell {
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = .none
        setupLayouts()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupLayouts() {
        
        
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(10)
            make.top.equalToSuperview().offset(6)
            make.right.equalToSuperview().offset(-100)
            make.height.equalTo(30)
        }
        numLabel.snp.makeConstraints { (make) in
            make.right.equalToSuperview().offset(-20)
            make.top.equalToSuperview().offset(7)
            make.height.equalTo(30)
            make.width.equalTo(100)
        }
        
        lineView.snp.makeConstraints { (make) in
            make.bottom.left.right.equalToSuperview()
            make.height.equalTo(1)
        }
        
    }
    
    lazy var lineView: UIView = {
        let view = UIView()
        view.backgroundColor = UIColor(hex6: 0xF1F1F1)
        contentView.addSubview(view)
        return view
    }()
    
    lazy var titleLabel: UILabel = {
        let label = UILabel()
        label.textColor = UIColor(hex6:0x404040)
        label.font = Theme.Font.size(16)
        label.text = "label"
        label.backgroundColor = .clear
        contentView.addSubview(label)
        return label
    }()
    
    lazy var numLabel: UILabel = {
        let label = UILabel()
        label.textColor = UIColor(hex6:0x999999)
        label.font = Theme.Font.size(16)
        label.text = "num"
        contentView.addSubview(label)
        return label
    }()
    
    
}
